package common.log.vo;

import common.log.util.LogType;

/**
 * 
 * 操作日志 VO
 * @author Administrator
 *
 */
public class WebLog {
	/**
	 * 操作是否成功
	 */
	private boolean isSuccess;
	/**
	 * 模块编码
	 */
	private Integer module;
	/**
	 * 消息
	 * 
	 */
	private String msg;
	/**
	 * 操作类型
	 */
	private LogType type;

	public WebLog() {
		super();
	}

	public WebLog(Integer module) {
		super();
		this.module = module;
	}

	public WebLog(Integer module, LogType type) {
		super();
		this.module = module;
		this.type = type;
	}


	public WebLog(Integer module, LogType type, String msg) {
		super();
		this.module = module;
		this.type = type;
		this.msg = msg;
	}

	public Integer getModule() {
		return module;
	}

	public String getMsg() {
		return msg;
	}

	public LogType getType() {
		return type;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setModule(Integer module) {
		this.module = module;
	}

	public void setType(LogType type) {
		this.type = type;
	}

	/**
	 * 设置成功
	 * @param msg
	 */
	public void setSuccess(String msg) {
		this.isSuccess = true;
		this.msg = msg;
	}
	
	/**
	 * 设置失败
	 * @param msg
	 */
	public void setFail(String msg){
		this.isSuccess = false;
		this.msg = msg;
	}


}
